<?php
	include_once("config.php");
	// step 1: get all of the info from the request
	// TO-DO: establish user session information
	//$user = "temp";
	session_start();
	$user = $HTTP_SESSION_VARS['username']; 
	
	$playlist = $_GET['playlist']; 
	
	// step 2: check to see if the playlist does exist in the database
	db_connect();
	$sql = "delete from ajax_video where username='$user' and playlist='$playlist'"; 
	$result = mysql_query($sql) or die("An error has occured: ".mysql_error()." sql: ".$sql);
	
	echo ("results reached here"); 
?>